{template '_header'}
{template 'commission/common'}
<div class="fui-page fui-page-current page-commission-order">
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back"></a>
        </div>
        <div class="title">级差订单</div>

    </div>
    <!--chemeng-->
    <div class="fui-content ">
        <div class="fui-tab fui-tab-warning" id="tab">
            <a class="active" data-tab='status'>所有</a>
            <a href="javascript:void(0)" data-tab='status0'>待付款</a>
            <a href="javascript:void(0)" data-tab='status1'>已付款</a>
            <a href="javascript:void(0)" data-tab='status3'>已完成</a>
            <a href="javascript:void(0)" data-tab='status4'>已关闭</a>
        </div>

        <div class='content-empty' style='display:none;'>
            <i class='icon icon-list'></i><br/>暂时没有任何订单
        </div>
        <div  id="container"></div>
        <div class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
   </div>
</div>

<script id='tpl_team_order_list' type='text/html'>
    <%each list as order%>

    <div class='fui-list-group'>
                <div class="fui-list" style="height: 2.4rem">
                    <div class="fui-list-media">
                        <img src="<%order.buyer.avatar%>" class="round" style='width:1.4rem;height:1.4rem;border-radius: 50%'>

                    </div>
                    <div class="fui-list-inner">
                        <div class="row">
                            <div class="row-text" style="font-size: .6rem"><%order.buyer.nickname%></div>
                        </div>
                    </div>
                    <div class="fui-list-angle" style="margin: 0;font-size: .6rem; <%if order.status==1%>color:#ff8000;<%else if order.status==0%>color:#ff5555;<%else if order.status==3%>color:#04ab02;<%else%>color:#b2b2b2;<%/if%>"><%order.statusstr%></div>
                </div>


                <%each order.order_goods as g%>
                <div class="fui-list no-border" style="background: #f9f9f9;height: 3.25rem;margin-top: .1rem">
                    <div class="fui-list-media">
                        <img src="<%g.thumb%>" class="round" style='width:2.5rem;height:2.5rem;'>
                    </div>
                    <div class="fui-list-inner">
                        <div class="row">
                            <div class="row-text" style="font-size: .6rem;color: #000"><%g.title%></div>
                        </div>
                        <div class="subtitle" style="font-size: .6rem;color: #999;"><%g.optionname%>x<%g.total%></div>
                    </div>
                    <div class="row-remark">
                        <p>商品金额</p>
                        <p>+<%g.realprice%></p>
                    </div>
                </div>
                <%/each%>


        <div class='fui-list'>
            <span class="left" style="font-size: .55rem;color: #999;line-height: .95rem">
                订单编号：<%order.ordersn%><br>
                下单时间：<%order.createtime%><br>
                预计奖励：<%order.bonus%>
            </span>
        </div>
    </div>
    <%/each%>
</script>

    <script language='javascript'>
            require(['../addons/ewei_shopv2/plugin/commission/static/js/unlimited/order.js'], function (modal) {
                modal.init({fromDetail:false});
            });
        </script>

{template '_footer'}

